init_vanilla()
--+--------------------------------------------------------------------------------+--

-- if Registry['VA_ENV'] == nil then
	function html(t)
		ngx.header.content_type = "text/html"
		ngx.header.content_type = "application/json;charset=utf8"
		return t
	end
	
	function json(t)
		ngx.header.content_type = "text/html"
		ngx.header.content_type = "application/json;charset=utf8"
		local cjson = require('cjson')
		cjson.encode_empty_table_as_object(true)
		local str = cjson.encode(t)
		return str
	end

    function err_log(msg)
        ngx.log(ngx.ERR, "===zjdebug" .. msg .. "===")
    end
-- end
--+--------------------------------------------------------------------------------+--

Registry['VANILLA_APPLICATION']:new(ngx, Registry['APP_CONF']):bootstrap(Registry['APP_BOOTS']):run()
